import request from '@/utils/request'
import { downFile } from '@/utils/request'

export function getProcessList(query) {
  return request({
    url: '/mes/md/workproroute/list',
    method: 'get',
    params: query,
  })
}

export function insertProcess(data) {
  return request({
    url: '/mes/md/workproroute/addProcess',
    method: 'post',
    data: data,
    contextType: 'application/json',
  })
}

export function updateProcess(data) {
  return request({
    url: '/mes/md/workproroute/updateProcess',
    method: 'post',
    data: data,
    contextType: 'application/json',
  })
}

export function delProcess(data) {
  return request({
    url: '/mes/md/workproroute/delProcess',
    method: 'post',
    data: data,
    contextType: 'application/json',
  })
}
